import { Module } from '@nestjs/common';
import { MenuService } from './menu.service';
import { MenuController } from './menu.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Menu } from './entities/menu.entity';
import { UserModule } from 'src/system/user/user.module';
import { RoleMenuModule } from '../role-menu/role-menu.module';
import { UserRoleModule } from '../user-role/user-role.module';

@Module({
  imports:[
    TypeOrmModule.forFeature([Menu]),
    UserModule,
    RoleMenuModule,
    UserRoleModule
  ],
  controllers: [MenuController],
  providers: [MenuService],
  exports:[MenuService]
})
export class MenuModule {}
